#!/bin/bash

num=0
while true
  do
   echo "restart $num times"
   python ./agentserver.py 
   num=$(($num+1))
   sleep 5
  done